extension :revision => :last_sources_with_fallback do
  task :fill_real_revision do
    rev = build_repository.sync.revisions.reverse.find { |r| build_repository[r].checked_out }
    if rev
      set :real_revision, rev 
    else
      execute_previous
    end
  end
end